<extend name="Public/base" />
<block name="head">

</block>
<block name="body">
<ul class="breadcrumb">
	<li><a href="javascript:history.back(-1)">返回上一页</a> <span
		class="divider">/</span></li>
	<li class="active">{$meta_title}</li>
</ul>
<div class="row-fluid">
	<form class="form-horizontal" action="{:U('edit')}">
		<input type="hidden" name="id" value="{$info.id|default=''}">
		<div class="control-group">
			<label class="control-label" for="title">角色名称</label>
			<div class="controls">
				<input type="text" id="title" name="title" class="span8"
					placeholder="角色名称" value="{$info.title}">
			</div>
		</div>

		<div class="control-group">
			<label class="control-label" for="description">角色描述</label>
			<div class="controls">
				<input type="text" name="description" id="description" class="span8"
					value="{$info.description}" placeholder="角色描述">
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="status">状态</label>
			<div class="controls">
				<select id="status" name="status" class="span8">
					<option value="1">显示</option>
					<option value="0">隐藏</option>
				</select>
			</div>
		</div>		
		<div class="control-group">
			<div class="controls">
				<button type="submit" class="btn ajax-post"
					target-form="form-horizontal">保存</button>
				<button type="button" class="btn"
					onclick="javascript:history.back(-1)">取消</button>
			</div>
		</div>
	</form>
</div>
</block>
<block name="script">
 <script type="text/javascript">
 setValue("status", {$info.status|default = 1});

  </script> </block>
